<%@page import="classeMetier.Epic"%>
<%@page import="java.sql.ResultSet"%>

<%
	classeMetier.Epic myEpic = new classeMetier.Epic();
	out.print(myEpic.getErreurConnexion());
	try{
		java.sql.ResultSet rs = myEpic.getAll();
		rs.first();
		do {
			out.print(rs.getString("epic_name"));
		}while (rs.next());
	}
	catch (Exception e){
		out.print("erreur epic.getAll() "+e);
	}
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<script language="javascript" type="text/javascript" src="./js/jit.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<link type="text/css" rel="stylesheet" href="./css/style.css" />
<script language="javascript" type="text/javascript" src="./js/popup.js"></script>
<script type="text/javascript" src="./js/mm.js?t=<%= new java.util.Date() %>"></script>
	<head>
		<title>MindMap</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	</head>

	<body>
		<div id="zone_bandeau">
			<h1>Affichage de la MindMap</h1>
		</div>
		
		<div id="menu">
			<br/><br/>
			<input type="button" name="createproject" class="button_node" value='Creer Projet' style="background-color:White" style="color:white"> <br/><br/>
			<input type="button" name="createepic"  class="button_node" value='Creer Epic' style="background-color:White" style="color:white" > <br/><br/> 
			<input type="button" name="createus" class="button_node" value='Creer User Story' style="background-color:White" style="color:white" > <br/><br/>
			<input type="button" name="createscenario" class="button_node" value='Creer Scenario' style="background-color:White" style="color:white"> <br/><br/>
		</div>

		<div id="infovis"></div>
		
		<div id="log"></div>
		
		<div id="inner-details"></div>
		
		<div id="createepic" title="Epic" class="node">
			<div style="color:red" id="message_epic"></div>
			<form method="post" name="form_epic" id="form_epic">
			Projet : <select id="epic_parent"><br />
			
			</select>	
			Nom : <input type="text" name="epic_name" id="epic_name" value=""/> <br />
			Description : <input type="text" name="epic_description" id="epic_description" value=""/> <br />
			Commentaire: <input type="text" name="epic_comment" id="epic_comment" value=""/> <br />
			Business Value : <input type="text" name="epic_business_value" id="epic_business_value" value=""/> <br />
			Test&eacute ? : oui <input type="radio" name="epic_tested" id="epic_tested_yes" value="1"/>  non <input type="radio" name="epic_tested" id="epic_tested_no" value="0" checked="checked"/><br/>
			Test r&eacuteussi ? : oui <input type="radio" name="epic_succeed" id="epic_succeed_yes" value="1"/>  non <input type="radio" name="epic_succeed" id="epic_succeed_no" value="0" checked="checked"/><br/>
			<input type="button" id="post_epic" value="Envoyer" />
			<input type="reset" value="Reset"/>
			</form>
		</div>
		
		<div id="createproject" title="Projet" class="node">
			<div style="color:red" id="message_project"></div>
			<form id="form_project" method="post">
				<input type="hidden" name="projet_id" id="projet_id" value=""/>
				Nom du Projet : <input type="text" name="projet_name" id="projet_name" value=""/><br/>
				Description : <input type="text" name="projet_description" id="projet_description" value=""/><br/>
				Business Value : <input type="text" name="projet_business_value" id="projet_business_value" value=""/><br/>
				Test&eacute ? : oui <input type="radio" name="projet_tested" id="projet_tested_yes" value="1"/>  non <input type="radio" name="projet_tested" id="projet_tested_no" value="0" checked="checked"/><br/>
				Test r&eacuteussi ? : oui <input type="radio" name="projet_succeed" id="projet_succeed_yes" value="1"/>  non <input type="radio" name="projet_succeed" id="projet_succeed_no" value="0" checked="checked"/><br/>
				<input id="post_project" type="button" name="envoie" value="Envoyer"/><input type="reset" value="Reset"/>
			</form>
		</div>
		
		<div id="createus" title="User Story" class="node">
			<div style="color:red" id="message_us"></div>
			<form id="form_us" method="post">
				Nom de la User-story : <input type="text" name="userstory_name" id="userstory_name" value=""/><br/>
				Commentaire : <input type="text" name="userstory_comment" id="userstory_commment" value=""/><br/>
				Description : <input type="text" name="userstory_description" id="userstory_description" value=""/><br/>
				Business Value : <input type="text" name="userstory_business_value" id="userstory_business_value" value=""/><br/>
				Test&eacute ? : oui <input type="radio" name="userstory_tested" id="userstory_tested_yes" value="1"/>  non <input type="radio" name="userstory_tested" id="userstory_tested_no" value="0" checked="checked"/><br/>
				Test r&eacuteussi ? : oui <input type="radio" name="userstory_succeed" id="userstory_succeed_yes" value="1"/>  non <input type="radio" name="userstory_succeed" id="userstory_succeed_no" value="0" checked="checked"/><br/>
				Parent : <input type="text" name="userstory_parent" id="userstory_parent" value=""/><br/>
				<input id="post_us" type="button" name="envoie" value="Envoyer"/>
				<input type="reset" value="Reset"/>
			</form>
		</div>
		
		<div id="createscenario" title="Sc&eacutenario" class="node">
			<div style="color:red" id="message_scenario"></div>
			<form id="form_scenario" name="form_scenario" method="post">
				Nom du Scenario : <input type="text" name="scenario_name" id="scenario_name" value=""/><br/>
				Commentaire : <input type="text" name="scenario_commment" id="scenario_commment" value=""/><br/>
				Description : <input type="text" name="scenario_description" id="scenario_description" value=""/><br/>
				Business Value : <input type="text" name="scenario_business_value" id="scenario_business_value" value=""/><br/>
				Developpeur : <input type="text" name="scenario_developer" id="scenario_developer" value=""/><br/>
				Complexite : <input type="text" name="scenario_complexity" id="scenario_complexity" value=""/><br/>
				Test&eacute ? : oui <input type="radio" name="scenario_tested" id="scenario_tested_yes" value="1"/>  non <input type="radio" name="scenario_tested" id="scenario_tested_no" value="0" checked="checked"/><br/>
				Test r&eacuteussi ? : oui <input type="radio" name="scenario_succeed" id="scenario_succeed_yes" value="1"/>  non <input type="radio" name="scenario_succeed" id="scenario_succeed_no" value="0" checked="checked"/><br/>
				Parent : <input type="text" name="scenario_parent" id="scenario_parent" value=""/><br/>
				<input id="post_scenario" type="button" name="envoie" value="Envoyer"/><input type="reset" value="Reset"/>
			</form>
		</div>
		<div id="scena" title="Scena" class="node">
			
		</div>
	</body>
</html>
